# coding:utf-8
#下面的一个字串，其实际是一个get请求的参数组合，请将其解析由参数和值组成的字典。
str='pageSize=30&product=EFund&DISCOUNT=&SortColumn=SYL_Y&MobileKey=4a69e1fc7d583fe671ad69c95ae6c2b7%7C%7C945235770232353&BUY=true&appType=ttjj&LevelOne=&version=6.3.2&onFundCache=3&Sort=desc&pageIndex=1&FundType=6&CompanyId=&plat=Android&TOPICAL=&ENDNAV=&LevelTwo=&ISABNORMAL=true&DataConstraintType=0&gToken=ceaf-236567466abfda4e2864831ea5645231&ESTABDATE=6&deviceid=4a69e1fc7d583fe671ad69c95ae6c2b7%7C%7C945235770232353'

def returnStr():
    dict1={}
    listp=str.split('&')
    for i in listp:
        keyr=i.split('=')
        dict1.update({keyr[0]:keyr[1]})
    return dict1

if __name__ == '__main__':
    returnStr()